package com.ss.user.dao;

import java.util.List;
import java.util.Map;

import com.ss.user.pojo.UserInfo;

/*
 *网站会员管理
 */
public interface UserDao {
	/**
	 * 新增
	 * @param info
	 * @throws Exception
	 */
	void addUser(UserInfo info) throws Exception;
	/**
	 * 查询
	 * @param info
	 * @throws Exception
	 */
	List<UserInfo> queryUser(UserInfo info) throws Exception;
	

	/**
	 * 修改
	 * @param info
	 * @throws Exception
	 */
	int updateUser(UserInfo info) throws Exception;
	
	/**
	 * 查询
	 * @param info
	 * @throws Exception
	 */
	UserInfo getUserById(String id) throws Exception;
	/**
	 * getUserByName录
	 * @param userName
	 * @return
	 * @throws Exception
	 */
	UserInfo getUserByName(String userName) throws Exception;	
	
	/**
	 * 记录最后登录时间
	 * @param id
	 * @throws Exception
	 */
	void markLoginTime(String id) throws Exception;
	/**
	 * 审核用户
	 * @param map
	 * @return
	 * @throws Exception
	 */
	int auditUser(Map<String, Object> map) throws Exception;
}
